package com.qf.commons.base.result;

import lombok.Getter;

/**
 * author Ken
 * create_time 2022/11/12
 */
@Getter
public enum Codes {

    //枚举类的对象
    SUCC(200, "成功"),
    FAIL(500, "服务器异常！"),
    LOGIN_ERROR(401, "用户名或者密码错误！"),
    PARAM_BIND_ERROR(402, "参数绑定异常！");

    private Integer code;
    private String msg;

    Codes(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }
}
